import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;

public class Test03 {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap<>();
        map.put("标枪选手","马超");
        map.put("人物挂件","明世隐");
        map.put("御龙骑士","伊志平");
        Set<Map.Entry<String,String>> entries=map.entrySet();
        /*for(Map.Entry<String,String> entry:entries){
            String key=entry.getKey();
            String value=entry.getValue();
            System.out.println(key+"="+value);
        }*/
        /*Iterator<Map.Entry<String,String>> it=entries.iterator();
        while(it.hasNext()){
            Map.Entry<String,String> entry=it.next();
            String key=entry.getKey();
            String value=entry.getValue();
            System.out.println(key+"="+value);
        }*/
        /*entries.forEach( entry->{
                String key=entry.getKey();
                String value=entry.getValue();
                System.out.println(key+"="+value);

            });*/
    }
}
